Skip to main content
POST
Food Background Removal

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image
file
required
  • Image format: JPEG JPG BMP PNG.
  • Image size: No more than 4 MB.
  • Image resolution: Larger than 40x40px and smaller than 1999x1999px.
return_form
enum<string>

Specifies the form of the returned image.

  • If not set, the four-channel PNG map is returned.
  • mask: Returns a single channel mask.
  • whiteBK: Return to white background image.
Available options:
mask,
whiteBK

Response

200 - application/json

Success

request_id
string
required

Request ID for debugging.

log_id
string
required

Log ID for debugging.

error_detail
object
required
data
object

The content of the result data returned.